#include <stdio.h>
#include "mpi.h"

int main(int ac, char **av){
	int process, myrank;
	float buf;
	MPI_Init(&ac, &av);
	MPI_Comm_rank(MPI_COMM_WORLD, &myrank);
	MPI_Comm_size(MPI_COMM_WORLD, &process);
	if(myrank == 0)  buf = 1.0;
	else buf = myrank;
	/* int MPI_Bcast( void *buffer, int count, MPI_Datatype datatype, int root,MPI_Comm comm )  */
	MPI_Bcast(&buf, 1, MPI_FLOAT, 0, MPI_COMM_WORLD );
	printf("%f\n ",buf );
	MPI_Finalize();
}



